<?php

namespace IDock\Insurance\CHAC;

class CHACEnums
{
    /**
     * 使用性质
     * @var array $useNatureCode
     */
    public static $useNatureCode = [
        '01' => '非运营',
        '02' => '运营',
    ];

    /**
     * 所属性质
     * @var array $attachNature
     */
    public static $attachNature = [
        '01' => '个人',
        '02' => '机关/团体',
        '03' => '企业'
    ];


    /**
     * 车辆用途
     * @var array $causeType
     */
    public static $causeType = [
        '001' => '01',
        '002' => '', //机关自用
        '003' => '', //企业自用
        '004' => '05',
        '005' => '04',
        '006' => '03',
        '007' => '02',
        '008' => '07',
        '009' => '',
    ];

    /**
     * 车辆种类
     * @var array $carKindCode
     */
    public static $carKindCode = [
        '100' => '客车',
        '200' => '货车',
        '210' => '低速载货汽车',
        '320' => '挂车',
        '500' => '特种车',
        '600' => '特种车挂车'
    ];

    public static $energyType1 = [
        '' => 'E01',
        '两用燃料' => 'E01',
        '汽油' => 'E01',
        '柴油' => 'E01',
        '电动' => 'E02',
        '燃料电池' => 'E03',
        '插电式混合动力' => 'E04',
        '混合动力' => 'E05',
    ];

    /**
     * 能源类型
     * @var string[] $energyType
     */
    public static $energyType = [
        'E00' => '',
        'E01' => '0',
        'E02' => '1',
        'E03' => '2',
        'E04' => '3',
        'E05' => '4',
    ];

    /**
     * 进口车标识
     * @var string[] $importFlag
     */
    public static $importFlag = [
        'I0' => '无',
        'I1' => '国产',
        'I2' => '合资',
        'I3' => '进口'
    ];

    /**
     * 号牌颜色代码
     * @var string[] $licenseColorCode
     */
    public static $licenseColorCode = [
        '01' => '蓝',
        '02' => '黄',
        '03' => '黑',
        '04' => '白',
        '05' => '绿',
        '06' => '白蓝',
        '99' => '其他',
    ];

    /**
     * 号牌种类代码
     * @var array $licenseTypeCode
     */
    public static $licenseTypeCode = [
        '01' => '大型汽车',
        '02' => '小型汽车',
        '03' => '使馆汽车',
        '04' => '领馆汽车',
        '05' => '境外汽车',
        '06' => '外籍汽车',
        '07' => '两、三轮摩托车',
        '08' => '轻便摩托车',
        '09' => '使馆摩托车',
        '10' => '领馆摩托车',
        '11' => '境外摩托车',
        '12' => '外籍摩托车',
        '13' => '农用运输车',
        '14' => '拖拉机',
        '15' => '挂车',
        '16' => '教练汽车',
        '17' => '教练摩托车',
        '18' => '试验汽车',
        '19' => '试验摩托车',
        '20' => '临时入境汽车',
        '21' => '临时入境摩托车',
        '22' => '临时行驶车',
        '31' => '公安警用汽车',
        '32' => '公安民用汽车',
        '33' => '公安警用摩托车',
        '36' => '武警号牌',
        '37' => '军队号牌',
        '51' => '大型新能源汽车',
        '52' => '小型新能源汽车',
        '99' => '其他',
    ];

    /**
     * 车型减免税标识
     * @var array $taxReduceCode
     */
    public static $taxReduceCode = [
        '' => 'TR0',
        '0' => 'TR0',
        '04' => 'TR1',
        '05' => 'TR2',
    ];

    /**
     * 交管车型代码
     * @var array $vehicleStyleCode
     */
    public static $vehicleStyleCode = [
        'K11 ' => '大型普通客车',
        'K12 ' => '大型双层客车',
        'K13 ' => '大型卧铺客车',
        'K14 ' => '大型铰接客车',
        'K15 ' => '大型越野客车',
        'K21 ' => '中型普通客车',
        'K22 ' => '中型双层客车',
        'K23 ' => '中型卧铺客车',
        'K24 ' => '中型铰接客车',
        'K25 ' => '中型越野客车',
        'K31 ' => '小型普通客车',
        'K32 ' => '小型越野客车',
        'K33 ' => '轿车',
        'K34' => '小型专用客车',
        'K38' => '小型专用校车',
        'K39' => '小型面包车',
        'K41 ' => '微型普通客车',
        'K42 ' => '微型越野客车',
        'K43 ' => '微型轿车',
        'H11' => '重型普通货车',
        'H12' => '重型厢式货车',
        'H13' => '重型封闭货车',
        'H15' => '重型平板货车',
        'H18' => '重型特殊结构货车',
        'H21' => '中型普通货车',
        'H22' => '中型厢式货车',
        'H23' => '中型封闭货车',
        'H25' => '中型平板货车',
        'H28' => '中型特殊结构货车',
        'H31' => '轻型普通货车',
        'H32' => '轻型厢式货车',
        'H33' => '轻型封闭货车',
        'H35' => '轻型平板货车',
        'H38' => '轻型特殊结构货车',
        'H41' => '微型普通货车',
        'H42' => '微型厢式货车',
        'H43' => '微型封闭货车',
        'H46' => '微型特殊结构货车',
        'M11' => '普通正三轮摩托车',
        'M12' => '轻便正三轮摩托车',
        'M13' => '正三轮载客摩托车',
        'M14' => '正三轮载货摩托车',
        'M15' => '侧三轮摩托车',
        'M21' => '普通二轮摩托车',
        'M22' => '轻便二轮摩托车',
        'N11' => '三轮农用运输车',
    ];

    /**
     * 关系人类型
     * @var array $relationTypeCode
     */
    public static $relationTypeCode = [
        'R1' => '个人',
        'R2' => '机关/团体',
        'R3' => '企业'
    ];

    /**
     * 关系人证件类型
     * @var array $certificateTypeCode
     */
    public static $certificateTypeCode = [
        '01' => '01', //居民身份证
        '02' => '',   //居民户口簿
        '03' => '02', //护照
        '04' => '11', //外国人永久居留身份证
        '05' => '',   //驾驶证
        '06' => '03', //军人身份证件
        '07' => '08', //港澳居民来往内地通行证
        '08' => '09', //台湾居民来往内地通行证
        '09' => '44', //港澳台居民居住证
        '10' => '10', //武警身份证


        '50' => '1', //组织机构代码证
        '51' => '',  //营业执照
        '52' => '4', //社会信用代码证
        '99' => '',  //其他
    ];

    /**
     * 缴税类型
     * @var array $taxTypeCode
     */
    public static $taxTypeCode = [
        'T01' => '02',
        'T02' => '03',
        'T03' => '05',
        'T04' => '04',
        'T05' => '07',
        'T06' => '07',
        'T07' => '',
        'T08' => '',
    ];

    /**
     * 减免税方案代码
     * @var array $taxReductionCode
     */
    public static $taxReductionCode = [
        'E' => '免税',
        'P' => '比例减免',
        'A' => '金额减免'
    ];

    /**
     * 减免税原因代码
     * @var array $taxReductionReasonCode
     */
    public static $taxReductionReasonCode = [
        'TRR1' => '1',
        'TRR2' => '2',
        'TRR3' => '3',
        'TRR4' => '4',
        'TRR5' => '5',
        'TRR6' => '6',
        'TRR7' => '6',
    ];

    /**
     * 险种代码
     * @var array $coverageCode
     */
    public static $coverageCode = [
        //交强险
        'C01001' => 'BZ',
        //商业险
        'C02001' => '01',
        'C02002' => '21',
        'C02003' => '12',
        'C02004' => 'P',
        'C02005' => 'W',
        'C02006' => 'FA',
        'C02007' => '14',
        'C02008' => '08',
        'C02009' => '31',

        'C03001' => '02',
        'C03002' => '32',
        'C03003' => 'RB',
        'C03004' => 'YB',
        'C03005' => 'FB',

        'C04001' => '041',
        'C04002' => 'RD11',
        'C04003' => 'YD11',
        'C04004' => 'FD11',

        'C05001' => '044',
        'C05002' => 'RD12',
        'C05003' => 'YD12',
        'C05004' => 'FD12',

        'C08001' => 'S1',
        'C08002' => 'S2',
        'C08003' => 'S3',
        'C08004' => 'S4',

        //新能源商业险
        'C12001' => '01',
        'C12002' => '21',
        'C12003' => '12',
        'C12004' => 'P',
        'C12006' => 'FA',
        'C12007' => '14',
        'C12008' => '08',

        'C13001' => '02',
        'C13002' => '32',
        'C13003' => 'RB',
        'C13004' => 'YB',
        'C13005' => 'FB',

        'C14001' => '041',
        'C14002' => 'RD11',
        'C14003' => 'YD11',
        'C14004' => 'FD11',

        'C15001' => '044',
        'C15002' => 'RD12',
        'C15003' => 'YD12',
        'C15004' => 'FD12',

        'C16001' => 'EA',
        'C16002' => 'UA',
        'C16003' => 'UB',
        'C16004' => '',
        'C16005' => '',

        'C18001' => 'S1',
        'C18002' => 'S2',
        'C18003' => 'S3',
        'C18004' => 'S4',
    ];

    public static $mainKindCode = [
        '01' => '01',
        '02' => '02',
        '041' => '041',
        '044' => '044',
        '08' => '02',
        '12' => '01',
        '14' => '01',
        '21' => '01',
        '32' => '02',
        'P' => '01',
        'W' => '01',
        'RB' => '02',
        'RD11' => '041',
        'RD12' => '044',
        'YB' => '02',
        'YD11' => '041',
        'YD12' => '044',
        'FA' => '01',
        'FB' => '02',
        'FD11' => '041',
        'FD12' => '044',
        'S1' => 'S1',
        'S2' => 'S2',
        'S3' => 'S3',
        'S4' => 'S4',
        'EA' => '01',
        'UA' => '01',
        'UB' => '02',
    ];

    /**
     * 玻璃材质
     * @var array $coverageModeCode
     */
    public static $coverageModeCode = [
        'M1' => '国产',
        'M2' => '进口',
        'M3' => '国产(特殊材质)',
        'M4' => '进口(特殊材质)',
    ];

    /**
     * 充电桩种类
     * @var string[] $chargePileKind
     */
    public static $chargingPileKind = [
        'PK1' => '1',
        'PK2' => '2',
        'PK9' => '9'
    ];

    /**
     * 充电桩安装地点类型
     * @var string[] $chargingPileAddressType
     */
    public static $chargingPileAddressType = [
        'PA1' => '1',
        'PA2' => '2'
    ];

    /**
     * 充电桩使用年限
     * @var array $chargingPileYearLimit
     */
    public static $chargingPileYearLimit = [
        'PY1' => '1',
        'PY2' => '2',
        'PY3' => '3'
    ];

    /**
     * 验车情况
     * @var string[] $carCheckCode
     */
    public static $carCheckCode = [
        'CS1' => '1',
        'CS2' => '2',
        'CS3' => '3',
        'CS4' => '4'
    ];

    /**
     * 免验原因
     * @var array $carCheckReasonKind
     */
    public static $carCheckReasonKind = [
        'CR1' => '1', //单保责任险
        'CR2' => '2', //按期续保
        'CR3' => '3', //新车
        'CR4' => '4', //团单
        'CR5' => '', //协议免验
        'CR6' => '', //低验车风险
        'CR7' => '', //其他原因
        'CR8' => '', //符合免验规定
        'CR9' => '', //按期转保
        'CR10' => '2' //未投保损失险别
    ];

    /**
     * 核保状态
     * @var array $underStats
     */
    public static $underStats = [
        'U1' => '核保通过',
        'U2' => '退回修改',
        'U3' => '人工核保',
        'U4' => '核保失败',
        'U5' => '已出保单',
        'U6' => '拒保',
        'U7' => '待审核',
    ];

    /**
     * 上传文件类型
     * @var array $uploadFileType
     */
    public static $uploadFileType = [
        //新车
        '10001-1' => '01-05-05',
        '10002-1' => '01-05-05',
        '10003-1' => '01-05-05',

        '10004-1' => '01-05-05',
        '10005-1' => '01-05-05',
        '10006-1' => '01-05-05',

        '10007-1' => '01-05-05',
        '10008-1' => '01-05-05',
        '10009-1' => '01-05-05',

        '10010-1' => '01-05-04',
        '10011-1' => '01-05-04',

        '10012-1' => '01-05-06',
        '10013-1' => '01-05-06',

        '10014-1' => '01-05-07',
        '10015-1' => '01-05-07',

        '10100-1' => '01-05-07',//'验车照片3',
        '10101-1' => '01-05-07',//'验车照片4',
        '10102-1' => '01-05-07',//'验车照片5',
        '10103-1' => '01-05-07',//'验车照片6',
        '10104-1' => '01-05-07',//'验车照片7',
        '10105-1' => '01-05-07',//'验车照片8',
        '10106-1' => '01-05-07',//'验车照片9',
        '10107-1' => '01-05-07',//'验车照片10',

        '10016-1' => '01-05-03',
        '10017-1' => '01-05-08',
        '10018-1' => '01-05-10',
        '10019-1' => '01-05-10',
        '10020-1' => '01-05-10',
        '10021-1' => '01-05-02',

        '90004-1' => '01-05-10',//'关系证明',
        '90009-1' => '01-05-10',//'其他',

        //旧车
        '10001-0' => '01-06-03',
        '10002-0' => '01-06-03',
        '10003-0' => '01-06-03',

        '10004-0' => '01-06-03',
        '10005-0' => '01-06-03',
        '10006-0' => '01-06-03',

        '10007-0' => '01-06-03',
        '10008-0' => '01-06-03',
        '10009-0' => '01-06-03',

        '10010-0' => '01-06-02',
        '10011-0' => '01-06-02',

        '10012-0' => '01-06-05',
        '10013-0' => '01-06-05',

        '10014-0' => '01-06-06',
        '10015-0' => '01-06-06',

        '10100-0' => '01-06-06',//'验车照片3',
        '10101-0' => '01-06-06',//'验车照片4',
        '10102-0' => '01-06-06',//'验车照片5',
        '10103-0' => '01-06-06',//'验车照片6',
        '10104-0' => '01-06-06',//'验车照片7',
        '10105-0' => '01-06-06',//'验车照片8',
        '10106-0' => '01-06-06',//'验车照片9',
        '10107-0' => '01-06-06',//'验车照片10',

        '10016-0' => '01-06-09',
        '10017-0' => '01-06-07',
        '10018-0' => '01-06-02',
        '10019-0' => '01-06-09',
        '10020-0' => '01-06-09',
        '10021-0' => '01-06-04',

        '90004-0' => '01-06-09',//'关系证明',
        '90009-0' => '01-06-09',//'其他',
    ];

    public static $typePathName = [
        "01-05-01" => "投保业务-新车-投保单",
        "01-05-02" => "投保业务-新车-购车发票",
        "01-05-03" => "投保业务-新车-合格证",
        "01-05-04" => "投保业务-新车-行驶证",
        "01-05-05" => "投保业务-新车-证件",
        "01-05-06" => "投保业务-新车-驾驶证",
        "01-05-07" => "投保业务-新车-验车照片",
        "01-05-08" => "投保业务-新车-已完税/减免税凭证",
        "01-05-09" => "投保业务-新车-新增设备发票与清单",
        "01-05-10" => "投保业务-新车-其他资料",

        "01-06-01" => "投保业务-旧车-投保单",
        "01-06-02" => "投保业务-旧车-行驶证或机动车登记证书",
        "01-06-03" => "投保业务-旧车-证件",
        "01-06-04" => "投保业务-旧车-二手车购车合同或发票",
        "01-06-05" => "投保业务-旧车-驾驶证",
        "01-06-06" => "投保业务-旧车-验车照片",
        "01-06-07" => "投保业务-旧车-已完税/减免税凭证",
        "01-06-08" => "投保业务-旧车-新增设备发票与清单",
        "01-06-09" => "投保业务-旧车-其他资料",
    ];

    /**
     * 特约类型
     * @var string[] $clauseType
     */
    public static $clauseType = [
        '0' => '未知',
        '1' => '固定特约',
        '2' => '替换特约',
        '3' => '填空特约',
        '4' => '替换和填空特约'
    ];


    /**
     * 机构类型
     * organizationType
     * @var string[] $organizationType
     */
    public static $organizationType = [
        '02' => '330', //个体工商户
        '03' => '300', //企业非法人
        '04' => '300', //企业法人
        '05' => '100', //机关法人
        '06' => '100', //机关非法人
        '07' => '200', //事业法人
        '08' => '200', //事业非法人
        '09' => '130', //社团法人
        '10' => '130', //社团非法人
        '11' => '130', //工会法人
        '12' => '130', //民办非企业单位
        '13' => '900', //其他
    ];

    public static $organizationTypeName = [
        '100' => '机关、团体',
        '110' => '国家机关',
        '120' => '党政机关',
        '130' => '社会团体',
        '140' => '基层群众自治组织',
        '200' => '事业单位',
        '210' => '卫生事业',
        '220' => '体育事业',
        '230' => '社会事业',
        '240' => '教育事业',
        '250' => '文化艺术业',
        '260' => '广播电影电视业',
        '270' => '科学研究业',
        '280' => '综合技术服务业',
        '300' => '企业单位',
        '310' => '国有',
        '320' => '集体',
        '330' => '个体',
        '340' => '私有',
        '350' => '外资',
        '360' => '混合所有制',
        '900' => '其他',
    ];


    /**
     * 车辆来历凭证种类
     * organizationType
     * @var string[] $organizationType
     */
    public static $certificateType = [
        '01' => '销售发票',
        '02' => '法院调解书',
        '03' => '法院裁定书',
        '04' => '法院判决书',
        '05' => '仲裁裁决书',
        '06' => '相关文书（继承、赠予、协议抵债）',
        '07' => '批准文件',
        '08' => '调拨证明',
        '09' => '修理发票',
    ];

    /**
     * 非车失败
     * nonCarStatus
     * @var array $nonCarStatus
     */
    public static $nonCarStatus = [
        'success',
        'error',
        'part'
    ];
}
